import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "lib-flexible";
import axios from "axios";
import vueWechatTitle from "vue-wechat-title";
const baseUrl = "https://ylsb.westts.cn/api"; // 正式环境
// const baseUrl = "https://yltest.westts.cn/api"; // 测试环境
// const baseUrl = "http://192.168.4.124:8081/api"; // 大映测试环境
const app = createApp(App);

app.config.globalProperties.$axios = axios;
app.config.globalProperties.baseUrl = baseUrl;
app.use(vueWechatTitle).use(router).use(store).mount("#app");

router.beforeEach((to, from, next) => {
  document.title = to.meta.title || "颀扬科技";
  next();
});
